﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="导入导出Excel.aspx.cs" Inherits="ProjectStudy.gridview导出为Excel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:Button ID="btn_search" runat="server" Text="查询"
            onclick="btn_search_Click" />
        <br />
        <br />
        <asp:Button ID="btn_Export" runat="server" Text="Excel导出" onclick="btn_Export_Click" style="height: 21px" />
        &nbsp;&nbsp;<asp:FileUpload ID="FileUpload1" runat="server" />
        <asp:Button ID="btnImport" runat="server" Text="Excel导入" onclick="btnImport_Click" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="id" HeaderText="班级ID" />
                <asp:BoundField DataField="className" HeaderText="班级名字" />
                <asp:BoundField DataField="classDesc" HeaderText="班级描述" />
                <asp:BoundField DataField="isDel" HeaderText="是否删除" />
            </Columns>
        </asp:GridView>
        <br />
        
    </div>
    </form>
</body>
</html>
